package xyz.riceball.security.common;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaovcloud
 * @since 2022/4/27 23:04
 */
public interface SecurityConstant {
    /**
     * 默认的登陆角色
     */
    String ROLE_LOGIN = "ROLE_LOGIN";
    /**
     * 默认的匿名登陆权限
     */
    String ROLE_ANONYMOUS = "ROLE_ANONYMOUS";

    /**
     * 登陆地址
     */
    String LOGIN_URL = "/rb/api/login";
    /**
     * 注销地址
     */
    String LOGOUT_URL = "/rb/api/logout";

    /**
     * token 相关
     */
    String TOKEN = "token";
    String TOKEN_KEY = "Usercore:Token:";
    String TOKEN_USER_ID = "userId";

    String ROUTER_NO_LOGIN = "Usercore:Route:noLogin";
    String ROUTER_LOGIN = "Usercore:Route:login";
    String ROUTER_AUTH = "Usercore:Route:auth";
}
